/*******************************************************************************
 *
 * Copyright (c) 2001-2006 Primeton Technologies, Ltd.
 * All rights reserved.
 *
 * Created on Apr 11, 2008
 *******************************************************************************/
package com.zhmy.xmgl.zhmytask.impl;

import com.primeton.ext.data.sdo.DataUtil;
import com.primeton.ext.data.sdo.ExtendedDataObjectImpl;
import com.zhmy.xmgl.zhmytask.ZhmyCustomer;

import commonj.sdo.Type;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Test</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link com.zhmy.xmgl.zhmytask.impl.ZhmyCustomerImpl#getCustomerId <em>CustomerId</em>}</li>
 *   <li>{@link com.zhmy.xmgl.zhmytask.impl.ZhmyCustomerImpl#getCustomerCompanyName <em>CustomerCompanyName</em>}</li>
 *   <li>{@link com.zhmy.xmgl.zhmytask.impl.ZhmyCustomerImpl#getCustomerName <em>CustomerName</em>}</li>
 *   <li>{@link com.zhmy.xmgl.zhmytask.impl.ZhmyCustomerImpl#getCustomerTel <em>CustomerTel</em>}</li>
 *   <li>{@link com.zhmy.xmgl.zhmytask.impl.ZhmyCustomerImpl#getCustomerAddress <em>CustomerAddress</em>}</li>
 * </ul>
 * </p>
 *
 * @extends ExtendedDataObjectImpl;
 *
 * @implements ZhmyCustomer;
 */

public class ZhmyCustomerImpl extends ExtendedDataObjectImpl implements ZhmyCustomer {
	/**
	 * Comment for <code>serialVersionUID</code>
	 */
	private static final long serialVersionUID = 1L;
	public final static int INDEX_CUSTOMERID = 0;
	public final static int INDEX_CUSTOMERCOMPANYNAME = 1;
	public final static int INDEX_CUSTOMERNAME = 2;
	public final static int INDEX_CUSTOMERTEL = 3;
	public final static int INDEX_CUSTOMERADDRESS = 4;
	public static final int SDO_PROPERTY_COUNT = 5;

	public static final int EXTENDED_PROPERTY_COUNT = -1;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 */
	public ZhmyCustomerImpl() {
		this(TYPE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 */
	public ZhmyCustomerImpl(Type type) {
		super(type);
	}

	protected void validate() {
		validateType(TYPE);
	}

	/**
	 * Returns the value of the '<em><b>CustomerId</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>CustomerId</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>CustomerId</em>' attribute.
	 * @see #setCustomerId(long)
	 */
	public long getCustomerId() {
		return DataUtil.toLong(super.getByIndex(INDEX_CUSTOMERID, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getCustomerId <em>CustomerId</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>CustomerId</em>' attribute.
	 * @see #getCustomerId()
	 */
	public void setCustomerId(long customerId) {
		super.setByIndex(INDEX_CUSTOMERID, customerId);
	}

	/**
	 * Returns the value of the '<em><b>CustomerCompanyName</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>CustomerCompanyName</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>CustomerCompanyName</em>' attribute.
	 * @see #setCustomerCompanyName(java.lang.String)
	 */
	public String getCustomerCompanyName() {
		return DataUtil.toString(super.getByIndex(INDEX_CUSTOMERCOMPANYNAME, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getCustomerCompanyName <em>CustomerCompanyName</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>CustomerCompanyName</em>' attribute.
	 * @see #getCustomerCompanyName()
	 */
	public void setCustomerCompanyName(String customerCompanyName) {
		super.setByIndex(INDEX_CUSTOMERCOMPANYNAME, customerCompanyName);
	}

	/**
	 * Returns the value of the '<em><b>CustomerName</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>CustomerName</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>CustomerName</em>' attribute.
	 * @see #setCustomerName(java.lang.String)
	 */
	public String getCustomerName() {
		return DataUtil.toString(super.getByIndex(INDEX_CUSTOMERNAME, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getCustomerName <em>CustomerName</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>CustomerName</em>' attribute.
	 * @see #getCustomerName()
	 */
	public void setCustomerName(String customerName) {
		super.setByIndex(INDEX_CUSTOMERNAME, customerName);
	}

	/**
	 * Returns the value of the '<em><b>CustomerTel</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>CustomerTel</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>CustomerTel</em>' attribute.
	 * @see #setCustomerTel(long)
	 */
	public long getCustomerTel() {
		return DataUtil.toLong(super.getByIndex(INDEX_CUSTOMERTEL, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getCustomerTel <em>CustomerTel</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>CustomerTel</em>' attribute.
	 * @see #getCustomerTel()
	 */
	public void setCustomerTel(long customerTel) {
		super.setByIndex(INDEX_CUSTOMERTEL, customerTel);
	}

	/**
	 * Returns the value of the '<em><b>CustomerAddress</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>CustomerAddress</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>CustomerAddress</em>' attribute.
	 * @see #setCustomerAddress(java.lang.String)
	 */
	public String getCustomerAddress() {
		return DataUtil.toString(super.getByIndex(INDEX_CUSTOMERADDRESS, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getCustomerAddress <em>CustomerAddress</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>CustomerAddress</em>' attribute.
	 * @see #getCustomerAddress()
	 */
	public void setCustomerAddress(String customerAddress) {
		super.setByIndex(INDEX_CUSTOMERADDRESS, customerAddress);
	}


}